import ContractConfirm from './ContractConfirm';
import ContractList from './ContractList';
import ContractBrokerage from './ContractBrokerage';
import authCheck from '@/tool/authCheck';

const _path = [
    { path: '', component: ContractConfirm },
    { path: '/合同审核', component: ContractConfirm },
    { path: '/合同列表', component: ContractList },
    { path: '/佣金合同', component: ContractBrokerage }
];

export const path = () => {
    if (!authCheck('*', '合同')) return [];
    return _path;
};

export const pathName = '合同';